package com.saturday.consumer.config;

import com.netflix.loadbalancer.IRule;
import com.netflix.loadbalancer.RoundRobinRule;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @author :Lx
 * @Date :2021/1/23 0023 19:57
 * @Description：负载均衡策略：轮询策略
 */
@Configuration
public class MyRule {

    @Bean
    public IRule getRule(){
        return new RoundRobinRule();
    }
}
